'use strict';
var Path = require('path')
const Fs = require('fs');
var xlsx = require('./parse_xlsx')
var file_util = require('./public/file_util.js')
let project_path = Editor.Project.path

let cur_path = Path.join(project_path, 'packages', 'sarsgamexlsxparser')


module.exports = {
	load() {
		console.log('package loaded');
	},

	unload() {
		console.log('package unloaded');
	},
	messages: {

		build() {
			Editor.log("开始 ");
			xlsx.init(cur_path);
			xlsx.exportAll();
			Editor.log("结束 ");
			let refresh_path = 'db://assets/'
			//Editor.assetdb.refresh(refresh_path, function(err, results) {
				//Editor.log("end");
			//});
		}
	},
};
